import { defineConfig, resolveConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import path from 'path'

// https://vitejs.dev/config/
export default defineConfig({


  resolve: {

    alias: {
      "/": "/src",
    }
  },

  build:{
    assetsDir: 'static/img/',
    rollupOptions: {
       output: {
           chunkFileNames: 'static/js/[name]-[hash].js',
           entryFileNames: 'static/js/[name]-[hash].js',
           assetFileNames: 'static/[ext]/[name]-[hash].[ext]',
       },
   },
},


  plugins: [vue()],
})
